package com.yonyou.brigade.third_parties.huazhu.controller;


import com.alibaba.fastjson.JSONObject;
import com.yonyou.brigade.third_parties.huazhu.service.IHzUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author houyb
 * @since 2020-06-18
 */
@RestController
@RequestMapping("/hzUser")
public class HzUserController {

    @Autowired
    private IHzUserService iHzUserService;

    @RequestMapping("/testLogin")
    public Object testLogin(@RequestBody JSONObject param){
        String tenant = param.getString("tenant");
        String org = param.getString("org");
        String phone = param.getString("phone");
        return iHzUserService.loginUrl(tenant, org, phone, "", "", "");
    }

}

